﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class gaInfo_delete : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            int id = int.Parse(Request["id"].ToString());
            bool del = new gaInfoNews().DeleteNewsById(id);
            if (del)
            {
                ClientScript.RegisterStartupScript(GetType(), "delete", "alert('删除成功!'),document.location='Default.aspx'", true);
            }
            else
            {
                ClientScript.RegisterStartupScript(GetType(), "delete", "alert('删除失败!')", true);
            }
        }
    }
}